package cn.itcast.java.oop;

/**
 * Author itcast
 * Date 2021/10/7 16:11
 * Desc TODO
 */
public class PhoneTest {
    public static void main(String[] args) {
        Phone phone = new Phone(
                "huawei",
                4000,
                "银白色"
        );

        phone.setBrand("苹果");

        System.out.println(phone.getBrand());

        System.out.println(phone.toString());

        phone.call("张三");

        Phone phone1 = new Phone(
                "小米",
                3000,
                "红色"
        );
        System.out.println(phone1.toString());
    }
}
